package com.ccys.doctor.controller;

import com.ccys.common.vo.ResponseResultApp;
import com.ccys.db.dto.doctor.patientMeasurement.UpdatePatientMeasurementDto;
import com.ccys.doctor.service.PatientMeasurementService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: WhiteCoat
 * @description: 患者测量相关接口
 * @author: ZhangJingCan
 * @create: 2024-02-08 13:59
 **/

@RestController
@Api(tags = "患者测量相关接口")
@RequestMapping("patientMeasurement")
public class PatientMeasurementController {

    @Autowired
    private PatientMeasurementService patientMeasurementService;

    @ApiOperation("修改患者的测量数据")
    @PostMapping(value = "/UpdatePatientMeasurement")
    public ResponseResultApp updatePatientMeasurement(@RequestBody UpdatePatientMeasurementDto dto) {
        return patientMeasurementService.updatePatientMeasurement(dto);
    }

}
